package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //1.添加菜品信息dish
    void saveDisWithFlavor(DishDto disDto);

    Page<DishDto> pageDishDto(Long page, Long pageSize, String name);

    void updateDishWithFlavor(DishDto dishDto);

    DishDto getDishByIdWithFlavor(Long id);

    void deleteByIds(Long[] ids);

    //扩展方法，根据分类查询菜品包含口味信息
    List<DishDto> listDishDto(Long categoryId, String name);

    //扩展方法，根据setmealId查询dish菜品信息
    List<DishDto> getDishBySetmealId(Long setmealId);
}
